package com.cssnj.portal.domain.func;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * 功能菜单实体类
 *
 * @author Arthur
 * @version 1.0
 * @since 2018/9/11 20:24
 */
@Entity
@Table(name = "GL_GN")
public class GlGnEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    private String gnId;
    private String gnMc;
    private String gnjc;
    private String xyBj;
    private String lrryId;
    private String xgryId;
    private Timestamp lrSj;
    private Timestamp xgSj;
    private String sjgnId;
    private String jdys;
    private String href;
    private String openType;
    private String beKjfs;
    private Long px;
    private String xtDm;
    private String kzBj;
    private String xsBj;
    private String gnms;

    @Id
    @Column(name = "GN_ID")
    public String getGnId() {
        return gnId;
    }

    public void setGnId(String gnId) {
        this.gnId = gnId;
    }

    @Basic
    @Column(name = "GN_JC")
    public String getGnjc() {
        return gnjc;
    }

    public void setGnjc(String gnjc) {
        this.gnjc = gnjc;
    }

    @Basic
    @Column(name = "GN_MC")
    public String getGnMc() {
        return gnMc;
    }

    public void setGnMc(String gnMc) {
        this.gnMc = gnMc;
    }

    @Basic
    @Column(name = "XY_BJ")
    public String getXyBj() {
        return xyBj;
    }

    public void setXyBj(String xyBj) {
        this.xyBj = xyBj;
    }

    @Basic
    @Column(name = "LRRY_ID")
    public String getLrryId() {
        return lrryId;
    }

    public void setLrryId(String lrryId) {
        this.lrryId = lrryId;
    }

    @Basic
    @Column(name = "XGRY_ID")
    public String getXgryId() {
        return xgryId;
    }

    public void setXgryId(String xgryId) {
        this.xgryId = xgryId;
    }

    @Basic
    @Column(name = "LR_SJ")
    public Timestamp getLrSj() {
        return lrSj;
    }

    public void setLrSj(Timestamp lrSj) {
        this.lrSj = lrSj;
    }

    @Basic
    @Column(name = "XG_SJ")
    public Timestamp getXgSj() {
        return xgSj;
    }

    public void setXgSj(Timestamp xgSj) {
        this.xgSj = xgSj;
    }

    @Basic
    @Column(name = "SJGN_ID")
    public String getSjgnId() {
        return sjgnId;
    }

    public void setSjgnId(String sjgnId) {
        this.sjgnId = sjgnId;
    }

    @Basic
    @Column(name = "JDYS")
    public String getJdys() {
        return jdys;
    }

    public void setJdys(String jdys) {
        this.jdys = jdys;
    }

    @Basic
    @Column(name = "HREF")
    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    @Basic
    @Column(name = "OPEN_TYPE")
    public String getOpenType() {
        return openType;
    }

    public void setOpenType(String openType) {
        this.openType = openType;
    }

    @Basic
    @Column(name = "BE_KJFS")
    public String getBeKjfs() {
        return beKjfs;
    }

    public void setBeKjfs(String beKjfs) {
        this.beKjfs = beKjfs;
    }

    @Basic
    @Column(name = "PX")
    public Long getPx() {
        return px;
    }

    public void setPx(Long px) {
        this.px = px;
    }

    @Basic
    @Column(name = "XT_DM")
    public String getXtDm() {
        return xtDm;
    }

    public void setXtDm(String xtDm) {
        this.xtDm = xtDm;
    }

    @Basic
    @Column(name = "KZ_BJ")
    public String getKzBj() {
        return kzBj;
    }

    public void setKzBj(String kzBj) {
        this.kzBj = kzBj;
    }

    @Basic
    @Column(name = "XS_BJ")
    public String getXsBj() {
        return xsBj;
    }

    public void setXsBj(String xsBj) {
        this.xsBj = xsBj;
    }

    @Basic
    @Column(name = "GNMS")
    public String getGnms() {
        return gnms;
    }

    public void setGnms(String gnms) {
        this.gnms = gnms;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GlGnEntity that = (GlGnEntity) o;
        return Objects.equals(gnId, that.gnId) &&
                Objects.equals(gnMc, that.gnMc) &&
                Objects.equals(gnjc, that.gnjc) &&
                Objects.equals(xyBj, that.xyBj) &&
                Objects.equals(lrryId, that.lrryId) &&
                Objects.equals(xgryId, that.xgryId) &&
                Objects.equals(lrSj, that.lrSj) &&
                Objects.equals(xgSj, that.xgSj) &&
                Objects.equals(sjgnId, that.sjgnId) &&
                Objects.equals(jdys, that.jdys) &&
                Objects.equals(href, that.href) &&
                Objects.equals(openType, that.openType) &&
                Objects.equals(beKjfs, that.beKjfs) &&
                Objects.equals(px, that.px) &&
                Objects.equals(xtDm, that.xtDm) &&
                Objects.equals(kzBj, that.kzBj) &&
                Objects.equals(xsBj, that.xsBj) &&
                Objects.equals(gnms, that.gnms);
    }

    @Override
    public int hashCode() {
        return Objects.hash(gnId, gnMc, gnjc, xyBj, lrryId, xgryId, lrSj, xgSj, sjgnId, jdys, href, openType, beKjfs, px, xtDm, kzBj, xsBj, gnms);
    }
}
